<?php
/**
 *   OPENSHOP 管理中心聚集页设定程序
 *   @package     OpenShop
 *   @version     $Id: createdynamic.php,v 1.0 2009/07/29 11:18:17 modified $
 *   @author      杨敬君 <aqkt_436@hotmail.com>
 */
define('IN_OS', true);
require(dirname(__FILE__) . '/includes/init.php');
require(dirname(__FILE__) . '/includes/cls_dynamic.php');
include_once("Cdycommand.php");
$dyLib=new cls_dynamic();
$filename=$_REQUEST['filename'];
$lib=$_REQUEST['lib'];
$dy_id=$_REQUEST['dy_id'];
if(is_dyidOnly($dy_id)==0){
    $link[0]['text'] = '返回上一页';
    $link[0]['href'] = "createdynamic.php?id=$lib";
    sys_msg('非法操作：数据未入录！', 0, $link);	
}else{


$dyLib->Delfile($dy_id,$filename);
$sql="delete from ".$os->table('dynamic')." where dy_id='$dy_id'";
$db->query($sql);
$link[0]['text'] = '返回上一页';
$link[0]['href'] = "createdynamic.php?id=$lib";
sys_msg('删除成功！', 0, $link);
}
?>